<?xml version="1.0" encoding="UTF-8"?>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>School Management System Cloud : Customer Home</title>
    </head>
    <body>

        <!-- Note that the "template" attribute of this element indicates that
             the /WEB-INF/includes/template.xhtml is used as a template -->
    <ui:composition	template="../includes/template.xhtml">

        <ui:define name="mainbody">
            
            <center>
            <p:panel header="School Home" style="min-height: 550px"  styleClass="prime_panel">
            	<p:spacer height="25" />
            	<center>
                            <table border="0" cellpadding="4px" cellspacing="8px">
                          
                                <tr>
                                <h:panelGroup rendered="#{sessionScope['user'].role.roleId eq 2}" >
                                   <td><p:spacer width="20"/>
                                        <a href="makeTimetable.xhtml">
                                            <img src="../../../images/maketimetable.png" width="128" height="128" alt="make_timetable"/>
                                			
                                			<center><h:outputLabel>Make Timetable</h:outputLabel></center>
										</a>
                                </td>
                                </h:panelGroup>
                         

                              
								<h:panelGroup rendered="true" >
                                <td>
                                    <a href="viewTimeTable.xhtml">
                                        <img src="../../../images/viewtimetable.png" width="128" height="128" alt="view_timetable"/>
                                    	
                                		<center><h:outputLabel>View Timetable</h:outputLabel></center> 
                                    
                                    </a>
                                </td>
                                </h:panelGroup>
                                
                                
                                <h:panelGroup rendered="#{sessionScope['user'].role.roleId eq 2}" >
                                <td>
                                    <a href="SendAlert.xhtml">
                                        <img src="../../../images/parents.png" width="128" height="128" alt="Parents_alerts"/><br/>
                                    
                                		<center><h:outputLabel>Send Alerts</h:outputLabel></center> 
                                	</a>
                                </td>
                                </h:panelGroup>
                                
                                <h:panelGroup rendered="#{sessionScope['user'].role.roleId eq 3}" >
                                <td>
                                    <a href="SendAlert.xhtml">
                                        <img src="../../../images/parents.png" width="128" height="128" alt="Parents_alerts"/><br/>
                                    
                                		<center><h:outputLabel>Send Alerts</h:outputLabel></center> 
                                	</a>
                                </td>
                                </h:panelGroup>
                                
                                <h:panelGroup rendered="true" >
                                <td>
                                    <a href="Forum.xhtml">
                                        <img src="../../../images/forum.png" width="128" height="128" alt="view_forum"/><br></br>
                                    
                                		<center><h:outputLabel>Forum</h:outputLabel></center>
                                	</a>
                                </td>
                                </h:panelGroup>
                                
                           
                                <h:panelGroup rendered="#{sessionScope['user'].role.roleId eq 2}" >
                                <td>
                                    <a href="ManageAdministration.xhtml">
                                        <img src="../../../images/customer_manage.png" width="128" height="128" alt="manage_administration"/><br></br>
                                    
                                		<center><h:outputLabel>Management</h:outputLabel></center>
                                	</a>
                                </td>
                                </h:panelGroup>

                                </tr>
                                
                            </table>
                            </center>
                        </p:panel>
                </center>
            </ui:define>
    </ui:composition>
</body>
</html>